class Health extends Item
{
   private final int HEALTH_BOOST = 50;
  
 public Health(PVector location, Player target, Terrain terrain)
 {
   super(location, target, terrain);
  
   graphic = loadImage("health.png");
   
   this.item = new Cube(graphic, new PVector(255, 50, 50));
 }
 
 public void act()
 {
  target.heal(min(HEALTH_BOOST, 100-target.getHealth()));
 }
  
}
